public class homeWork4 {
    //在同一个类中定义多个方法：要求不仅可以求两个整数的最大值，还可以求两个小数的最大值，以及两个小数和一个整数的大小关系
    public static int Max(int a,int b){
        int max = a;
        if(b>=a){
            max=b;
        }
        return max;
    }
    public static double Max(double a,double b){
        double max=a;
        if(b>=a){
            max=b;
        }
        return max;
    }
    public static void cmp(int a,double b,double c){
        double d=(double)a;
        double max=d;
        if(b>=max){
            max=b;
        }if(c>=max){
            max=c;
        }
        double min=d;
        if(b<=min){
            min=b;
        }if(c<=min){
            min=c;
        }
        if(d>=min && d<=max){
            System.out.println(min+"<="+d+"<="+max);
        }else if(b>=min && b<=max){
            System.out.println(min+"<="+b+"<="+max);
        }else if(c>=min && c<=max){
            System.out.println(min+"<="+c+"<="+max);
        }else{
            ;
        }
    }
    public static void main(String[] args){
        System.out.println(Max(2,3));
        System.out.println(Max(2.5,5.5));
        cmp(2,1.5,3.5);
    }
}
